package
{
	import com.longtailvideo.jwplayer.player.*;
	import com.longtailvideo.jwplayer.plugins.*;
	
	import flash.display.Sprite;
	
	/**
	 * 
	 * 
	 * 
	 */
	public class danmakuplugin extends Sprite implements IPlugin
	{
		/** Configuration list of the plugin. **/
		private var config:PluginConfig;
		/** Reference to the JW Player API. **/
		private var api:IPlayer;
		
		/** This function is automatically called by the player after the plugin has loaded. **/
		public function initPlugin(player:IPlayer, conf:PluginConfig):void {
			api = player;
			config = conf;
			trace("Hello World");
		}
		
		/** This should be a unique, lower-case identifier (e.g. "myplugin").  It must also match the name of the plugin's SWF file **/
		public function get id():String {
			return "helloworld";
		}
		
		/** Called when the player has resized.  The dimensions of the plugin are passed in here. **/
		public function resize(width:Number, height:Number):void {
			// Lay out plugin here, if necessary.
		}
	}
}